/*
 * Trang: jsfunction.js
 * 
 * Nguoi sua doi: Hitler 
 * 
 * Ngay viet: 28/10/2012
 * 
 * Chuc nang: Cac ham javascript duoc su dung trong web
 * 
 * Lan sua cuoi cung: 07/11/2012
 * 
 * Li do sua: Them ham
 * 
 * Nguoi sua: Hitler
 * 
 */
// Kiem tra la so
function isNumber(str){
    var re=/^[0-9]+$/;
    if(str.match(re)) return true;   
    else return false;
}
//trim
function trim(str){
    return str.replace(/^[\s]+/,"").replace(/[\s]+$/,"").replace(/[\s]{2,}/," ");
}
   function PopUp(url){
    new_window = window.open(url,'In','resizable=0,height=600px,width=1024px,scrollbars=yes,rollbars=yes');
    if (window.focus)
        new_window.focus();
}
